# class Tolmut(Base):
#     __tablename__ = 'tolmut'
#     id: Mapped[int] = mapped_column(default=None, nullable=False, primary_key=True)
#     name: Mapped[str] = mapped_column()
#     time_is_out: Mapped[int] = mapped_column()
#     id_condition: Mapped[int] = mapped_column()
#     id_condition_two: Mapped[int] = mapped_column()
from pydantic import BaseModel


class ITolmutCreate(BaseModel):
    name: str
    time_is_out: int
    id_continion: int
    id_condition_two: int

    class Config:
        from_attributes = True

class ITolmutRead(ITolmutCreate):
    id: int

class ITolmutPut(BaseModel):
    name: str | None
    time_is_out: int | None
    id_continion: int | None
    id_condition_two: int | None

    class Config:
        from_attributes = True